/**
 * a标签的转换版
 */
import React from 'react'
import './LinkA.less'
export default function LinkA(props) {
  const onClickLink = () => {
    props.onClickLink()
  }
  return (
    <span
      style={{ color: '#1da57a', cursor: 'pointer' }}
      className={props.className ? props.className : 'linkA'}
      onClick={onClickLink}
    >
      {props.children}
      {props.title}
    </span>
  )
}
